\documentclass[oneside,12pt,report]{Structure/Classes/CUEDthesisPSnPDF}
\usepackage{lipsum}
\usepackage[plain]{fancyref}
\usepackage{parskip}
%input macros (i.e. write your own macros file called MacroFile1.tex)
\include{Structure/Macros/MacroFile1}
\include{Structure/Macros/Definitions}
\include{Structure/Formatting/Format}

% Put all the style files you want in the directory StyleFiles and usepackage like this:
\usepackage{Structure/StyleFiles/watermark}
%\usepackage{Structure/StyleFiles/showframe}

\ifpdf
    \pdfinfo { /Title  (\longtitle)
               /Creator (TeX)
               /Producer (pdfTeX)
               /Author (\authorname \authoremail)
               /CreationDate (D:20110531000000)  %format D:YYYYMMDDhhmmss
               /ModDate (D:20110531000000)
               /Subject (\longtitle)
               /Keywords (cpgs, plasmon plasmonic)}
    \pdfcatalog { /PageMode (/UseOutlines)
                  /OpenAction (fitbh)  }
    \hypersetup{pdfauthor={\authorname\ (\authoremail)},
                pdftitle={\longtitle},
                pdfsubject={\longtitle}}
\fi

\title{\longtitle}

\author{\authortext}
\collegeordept{\departmenttext}
\university{\unitext}
% insert below the file name that contains the crest in-place of 'UnivShield'
\crest{}%\includegraphics[width=30mm]{UnivShield}}
\renewcommand{\submittedtext}{Dissertation for the Certificate of Postgraduate Study}
\degree{}%Certificate of postgraduate study}
\degreedate{\today}

% turn of those nasty overfull and underfull hboxes
\hbadness=10000
\hfuzz=50pt

% Comment out the next line to get single spacing
\onehalfspacing

\begin{document}

%\language{english}

% A page with the abstract on including title and author etc may be
% required to be handed in separately. If this is not so, then comment
% the below 3 lines (between '\begin{abstractseparate}' and 
% 'end{abstractseparate}'), normally like a declaration ... needs some more
% work, mind as environment abstracts creates a new page!
% \begin{abstractseparate}
%   \input{Abstract/abstract}
% \end{abstractseparate}




% Using the watermark package which is in StyleFiles/
% and to remove DRAFT COPY ONLY appearing on the top of all pages comment out below line
\watermark{\color{red} \MakeUppercase{draft} copy}
\begin{emptypages}
\maketitle
\end{emptypages}
%set the number of sectioning levels that get a number and appear in the contents
\setcounter{secnumdepth}{2}
\setcounter{tocdepth}{2}

%\frontmatter % book mode only
%\pagenumbering{roman}
\begin{romanpages}
%\include{Dedication/dedication}
\include{0_Abstract/abstract}

\tableofcontents
%\listoffigures
%\printnomenclature  %% Print the nomenclature
%\addcontentsline{toc}{chapter}{Nomenclature}
\end{romanpages}

%\mainmatter % book mode only
\include{1_Introduction/introduction}
\include{2_TheoreticalBackground/TheoreticalBackground}
\include{3_ExperimentalSetupAndMethods/ExperimentalSetupAndMethods}
\include{4_ResultsAndDiscussion/ResultsAndDiscussion}
\include{5_Outlook/Outlook}
\include{Conclusions/conclusions}

%\backmatter % book mode only
\include{Acknowledgement/acknowledgement}
%\appendix
%\include{Appendix1/appendix1}
%\include{Appendix2/appendix2}

\bibliographystyle{ieeetr}
%\bibliographystyle{Classes/CUEDbiblio}
%\bibliographystyle{Classes/jmb}
%\bibliographystyle{Classes/jmb} % bibliography style
\renewcommand{\bibname}{References} % changes default name Bibliography to References
\bibliography{References/mendeley} % References file

\end{document}

